package TestXunuan;

public class TestDoWhile {
    public static void main(String[] args) {
        //求1-5的累加和
        int n=1;
        int sum=0;
        do{
            sum=sum+n;
            n++;
        }while (n<=5);
        System.out.println(sum);
    }
}
